home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT OPENBROWSER.SCRIPT < prev    next >
Encoding:
Text File  |  2000-06-13  |  1.3 KB  |  38 lines

  1. !!Script
  2. // Copyright ⌐ 1997-2000 - Modelworks Software
  3.  
  4. // Insert script helper for:
  5.  
  6. /**
  7. @Object: Host 
  8. @Method: openBrowser() opens the file and returns an IEWrapper object. 
  9. The path parameter should be a full path. If the file does not exist 
  10. null will be returned. Note that the object returned is a wrapper object. 
  11. Its only field is webBrowserApp. If the browser.webBrowserApp object is 
  12. null it means that this document is no longer available and needs to be 
  13. opened again.
  14. @Paragraph:
  15. The webBrowserApp supports the following properties: AddressBar, Application, 
  16. Busy, Container, Document, FullScreen, Height, Left, LocationName, 
  17. LocationURL, MenuBar, Offline, Parent, ReadyState, RegisterAsBrowser, 
  18. RegisterAsDropTarget, Resizable, Silent, StatusBar, StatusText, TheaterMode, 
  19. ToolBar, Top, TopLevelContainer, Type, Visible, Width. And the following
  20. methods: ExecWB, GoBack, GoForward, GoHome, GoSearch, Navigate, 
  21. Navigate2, Quit, Refresh, Refresh2, ShowBrowserBar, Stop. 
  22. @Syntax: openBrowser(path, show)
  23. @Summary: openBrowser - opens the file and returns an IWebBrowser2 object
  24. */
  25.  
  26. function DoCommand()
  27. {
  28.     var editor = getActiveEditor();
  29.     if (editor)
  30.     {
  31.         var selection = editor.getSelection();
  32.         editor.replace("openBrowser(path, show)", selection);
  33.         editor.setActive("Insert openBrowser");
  34.     }
  35. }
  36.  
  37. !!/Script
  38.